<?php
$status = 'done';
if($_GET['act'] == 'goupload'){
  echo json_encode(array('status'=>$status,'data'=>$_FILES));
}else{
  $status = 'error';
  echo json_encode(array('status'=>$status));
}